From 8c5cdb2a68efa422d537a00ec4cb481c7c28a79d Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Fri, 24 Dec 2010 10:24:16 +0000 Subject: [PATCH] follow up to r78952 add parser tests relating to internal links with % encoding and + signs in them. --- tests/parser/parserTests.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 75bc50dcfb..7b21f3f0f8 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8141,6 +8141,16 @@ title=[[Main Page]] →__hello__world__ !! end +!! test +percent-encoding and + signs in comments (Bug 26410) +!! options +comment +!!input +[[ABC%33D% ++]] [[ABC%33D% ++|+%20]] +!! result +ABC3D% ++ +%20 +!! end + !! test Bad images - basic functionality !! input @@ -8327,6 +8337,20 @@ HTML5 data attributes !! end +!! test +percent-encoding and + signs in internal links (Bug 26410) +!! input +[[User:+%]] [[Page+title%]] +[[%+]] [[%+|%20]] [[%+ ]] [[%+r]] +[[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]] +[[%33%45]] [[%33%45+]] +!! result +

User:+% Page+title% +%+ %20 %+ %+r +% + bar +3E 3E+ +

+!! end TODO: more images -- 2.20.1